package fr.azzale.casu;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;

import android.app.Application;
import fr.azzale.casu.metier.Casu;

public class TribuneApplication extends Application {
	private HashMap<String, Casu> casus = new HashMap<String, Casu>();

	public Casu getCasu(String currentA) {
		if (casus.get(currentA) == null) {
			Casu c = new Casu();
			c.setProfileUrl(currentA);
			casus.put(currentA, c);
		}
		return casus.get(currentA);
	}

	public Collection<Casu> getCasus() {
		return casus.values();
	}

	public void setCasus(HashMap<String, Casu> casus2) {
		this.casus = casus2;
	}
}
